<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>index界面</h2>
姓名：<span th:text="${name}"></span>
<HR>
<h2>学生信息</h2>
学号:<span th:text="${student.id}"></span>
姓名:<span th:text="${student.name}"></span>
成绩:<span th:text="${student.grade}"/>
状态:<span th:if="${student.grade >=60}">通过</span>
<span th:if="${student.grade <=60}">GG</span>
<table border="1" width="60%" cellpadding="0">
    <thead>
    <th>学号</th>
    <th>姓名</th>
    <th>成绩</th>
    <th>状态</th>
    </thead>
    <tbody>
    <tr th:each="stu:${list}">
        <td th:text="${stu.id}"></td>
        <td th:text="${stu.name}"></td>
        <td th:text="${stu.grade}"></td>
        <td>
            <span th:if="${stu.grade>=60}">通过</span>
            <span th:if="${stu.grade<=60}">GG</span>
        </td>
        <td><a th:href="@{/student/del(id=${stu.id})}">删除</a></td>
    </tr>
    </tbody>
</table>

<a th:each="i:${#numbers.sequence(1,6)}" th:text="${i}" style="margin-left: 10px"></a>
</body>
</html>